scores = [5, 5, 10, 10, 15, 15, 20, 20, 25, 25]
dp = [False] * 151
dp[0] = True
for i in range(len(scores)):
    for j in range(150, scores[i] - 1, -1):
        dp[j] |= dp[j - scores[i]]
print(sum(dp))
